projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e6a985
)
icontheme: Use rgba() when loading symbolic icons
author
Benjamin Otte
<otte@redhat.com>
Sat, 5 Oct 2013 11:53:25 +0000
(13:53 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 5 Oct 2013 11:57:51 +0000
(13:57 +0200)
This way, we correctly pass on translucency information. Note: This
currently requires librsvg master.
gtk/gtkicontheme.c
patch
|
blob
|
history
diff --git
a/gtk/gtkicontheme.c
b/gtk/gtkicontheme.c
index d912687b2b7f337d3c68896d4653b703d136d9d2..95235b1d72f6d2ac97f3543c18f26520e4170685 100644
(file)
--- a/
gtk/gtkicontheme.c
+++ b/
gtk/gtkicontheme.c
@@
-4081,10
+4081,11
@@
static gchar *
gdk_rgba_to_css (const GdkRGBA *color)
{
/* drop alpha for now, since librsvg does not understand rgba() */
- return g_strdup_printf ("rgb
(%d,%d,%d
)",
+ return g_strdup_printf ("rgb
a(%d,%d,%d,%g
)",
(gint)(color->red * 255),
(gint)(color->green * 255),
- (gint)(color->blue * 255));
+ (gint)(color->blue * 255),
+ color->alpha);
}
static void